//
//  BNDOfficeDoHomeCell.m
//  OfficeDoc
//
//  Created by pie on 2022/4/8.
//  Copyright © 2022 pie. All rights reserved.
//

#import "BNDOfficeDoHomeCell.h"
#import "BNDHomeOfficeDocTipView.h"
#import "BNDOfficeDocVc.h"
#import "BNDPushVCHandler.h"

@interface BNDOfficeDoHomeCell()
@property (strong, nonatomic) BNDHomeOfficeDocTipView *tipView;
@end

@implementation BNDOfficeDoHomeCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _tipView = [[BNDHomeOfficeDocTipView alloc] initWithFrame:CGRectMake(0, 0, kDeviceWidth, 99)];
        [_tipView setBlock:^(id _Nullable data) {
            [BNDPushVCHandler pushOfficeDocDetailsVc:data action:^{
                
            }];
        }];
        [self.contentView addSubview:_tipView];
    }
    return self;
    
}

- (void)setModel:(BNDOfficeDocModel *)model
{
    _model = model;
    _tipView.model = model;
}


@end
